package com.aidong.myprofile.biz.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.aidong.myprofile.biz.MyDuationLablesBiz;
import com.aidong.myprofile.dao.MyDuationLablesDao;
import com.aidong.myprofile.entity.MyDuationLables;

@Service("duationLablesBiz")
public class MyDuationLablesBizImpl implements MyDuationLablesBiz {
	
	private MyDuationLablesDao duationLablesDao;

	@Autowired
	public void setDuationLablesDao(MyDuationLablesDao duationLablesDao) {
		this.duationLablesDao = duationLablesDao;
	}

	/**
	 * 获得我的个性标签
	 * @param idongId
	 * @return
	 */
	@Override
	public List<Map<String, Object>> getMyDuationLables(int idongId) {
		return duationLablesDao.getMyDuationLables(idongId);
	}

	/**
	 * 添加个性标签
	 * @param map
	 */
	@Override
	public void addMyDuationLables(MyDuationLables duationLables) {
		duationLablesDao.addMyDuationLables(duationLables);
	}

	/**
	 * 删除我的个性标签
	 * @param map
	 */
	@Override
	public void delMyDuationLables(Map<String, Object> map) {
		duationLablesDao.delMyDuationLables(map);
	}

}
